package com.xxy.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xxy.entity.Order;
import com.xxy.entity.dto.OrderQueryDTO;
import com.xxy.entity.vo.OrderVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface OrderMapper extends BaseMapper<Order> {
    List<OrderVO> queryByFilter(OrderQueryDTO orderQueryDTO);

    IPage<OrderVO> query(Page<OrderVO> page,  @Param("query") OrderQueryDTO query);
}
